<script>
    function addListeners(){
        addListenerFileInput()
    }

    function addListenerFileInput(){
        $("#uploadfile").on('fileuploaded', function(event, data, previewId, index){ 
            if(data.response.success){
                $("#coverFileName").val(data.response.data.filename_full);
                file_hw_ratio = data.response.data.file_hw_ratio
            }else{
                alert("上传失败, 错误信息：", data.response.errorInfo);
            }   
        })
    }
</script>